package poker;

/**
 * This class represents a poker hand.
 * Poker hand is composed of two cards.
 * @author guglielmo90
 */
public class Hand {
    
    private Card card1, card2;
    
    public Hand(){
    
        this.card1 = new Card();
        this.card2 = new Card();
        
    }
    
    public Hand(Card card1, Card card2){
    
        this.card1 = card1;
        this.card2 = card2;
    
    }
    
    public Card getFirstCard(){
    
        return card1;
    
    }
    
    public Card getSecondCard(){
    
        return card2;
    
    }
    
    @Override
    public String toString(){
    
        return (this.card1 + "" + this.card2);
        
    }
    
}
